<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Marquee Example</title>
    <script src="http://cdn.jingkao.net/public/javascripts/jquery.js"></script>
    
    <link rel="stylesheet" href="marquee.css">
    <script src="marquee.js"></script>
</head>
<body>
    <div id="marquee"></div>
    <script>
        $(function(){
            $.marquee.init({
                el: '#marquee',
                onEnd: function(){
                    $.marquee.setText(new Date().toString());
                }
            });

            $.marquee.setText(new Date().toString());
            
        });
    </script>
</body>
</html>